
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@page language="java"%>

<script language="JavaScript">
function Validate()
{
	  var image =document.getElementById("image").value;
	 if(image==''){
		 alert("Please enter Image Path");
		 document.getElementById("image").focus();
		 return false;
		 }
	 }
</script>

<section>
	<div class="main">
		<div class="account-login">
			<div class="content">

				<h2>Thông Tin Sản Phẩm</h2>

				<form action="adminaddproduct.do" method="post" 
					accept-charset="utf-8" enctype="multipart/form-data">
					<ul class="form-list">
						<li><label class="required" for="username">ID<em>*</em>
						</label>
							<div class="input-box">
								<input name="id" type="text" title="Tên Đăng Nhập"
									class="input-text required-entry"/>
							</div>
							<div class="clear"></div></li>
						<li><label class="required" for="username">Product
								Name<em>*</em>
						</label>
							<div class="input-box">
								<input name="product" type="text" title="Tên Đăng Nhập"
									class="input-text required-entry"/>
							</div>
							<div class="clear"></div></li>

						<li><label class="required" for="repassword">Catalog<em>*</em>
						</label> <!-- 							<div class="input-box"> --> <select
							class="sumup_desgin_select" name="idcatogory">
								<option value="0">All</option>
								<c:forEach var="p" items="${catalogs}">
									<option value="${p.idcatalog}">${p.catalogname}</option>
								</c:forEach>
						</select> <!-- 							</div> -->
							<div class="clear"></div></li>

						<li><label class="required" for="password">Details<em>*</em></label>
							<div class="input-box">
								<input name="detail" type="text"
									class="input-text required-entry" />
							</div>
							<div class="clear"></div></li>
						<li><label class="required" for="repassword">Price<em>*</em>
						</label>
							<div class="input-box">
								<input name="price" type="text"
									class="input-text required-entry" />
							</div>
							<div class="clear"></div></li>
						<li><label class="required" for="repassword">Link<em>*</em>
						</label>
							<div class="input-box">
								<input name="file" type="file"
									class="input-text required-entry" />
							</div>
<!-- 							<div class="input-box"> -->
<!-- 								<input type="hidden" name="action" value="Signup" /> <input -->
<!-- 									class="colors-btn" name="btnBrowse" type="submit" -->
<!-- 									value="Browse" /> -->
<!-- 							</div> -->
							<div class="clear"></div></li>
							
							<li><label class="required" for="repassword">Promotion<em>*</em>
						</label> <!-- 							<div class="input-box"> --> <select
							class="sumup_desgin_select" name="idpromotion">
								<c:forEach var="p" items="${promotions}">
									<option value="${p.idpromtion}">${p.discount}%</option>
								</c:forEach>
						</select> <!-- 							</div> -->
							<div class="clear"></div></li>

						<li><label class="required" for="repassword">Quantity<em>*</em>
						</label>
							<div class="input-box">
								<input name="quantity" type="text"
									class="input-text required-entry" />
							</div>
							<div class="clear"></div></li>
						<br />
						<li><label class="required" for="btnSignup"><em></em></label>
							<div class="input-box">
								<input type="hidden" name="action" value="Add" /> <input
									class="colors-btn" name="btnAdd" type="submit"
									value="Thêm Sản Phẩm" />
							</div>
							<div class="clear"></div></li>
					</ul>
				</form>
			</div>
		</div>
	</div>
</section>
